<ul class="am-avg-sm-2 dux-tabs">
    <li class="active">
        <a href="{url('index')}">账户提现</a>
    </li>
    <li class="">
        <a href="{url('log')}">提现记录</a>
    </li>
</ul>

<form class="am-form dux-form" action="{url('')}" method="post" data-dux="form-bind" data-advanced="false">
    <div class="dux-form-title">提现信息</div>
    <div class="am-input-group">
        <span class="am-input-group-label">提现银行卡</span>
        <!--if{empty($cardList)}-->
        <a href="{url('member/Card/add')}" class="am-form-content "><span class="am-text-primary">暂未绑定银行卡，点击添加</span></a>
        <!--{else}-->
        <a href="javascript:;" data-am-modal="{target: '#card-modal'}" class="am-form-content" id="card-info"><img src="__PUBLIC__/member/images/blank/{$cardList[0]['label']}.png" width="16" height="16px"> {$cardList[0]['bank']} (尾号{substr($cardList[0]['account'], -4)})</a>
        <a href="javascript:;" data-am-modal="{target: '#card-modal'}" class="am-input-group-label"><i class="am-icon-angle-right"></i></a>
        <input type="hidden" name="card_id" id="card_id" value="{$cardList[0]['card_id']}">
        <!--{/if}-->
    </div>
    <div class="am-input-group">
        <span class="am-input-group-label">可用金额</span>
        <div class="am-form-content">{$userInfo.money}元</div>
    </div>
    <div class="am-input-group">
        <span class="am-input-group-label">提现金额</span>
        <input type="tel" class="am-form-field" placeholder="请输入提现金额" name="money" value="">
        <span class="am-input-group-label"><a href="javascript:;" data-am-modal="{target: '#help-modal'}"><i class="am-icon-info-circle am-text-primary"></i></a></span>
    </div>
    <div class="dux-form-title">用户验证信息</div>
    <div class="am-input-group">
        <span class="am-input-group-label">验证方式</span>
        <select name="val_type" class="am-form-field">
            <option value="0">手机验证</option>
            <option value="1">邮箱验证</option>
        </select>
    </div>
    <div class="am-input-group">
        <span class="am-input-group-label">账号验证</span>
        <input type="text" class="am-form-field" placeholder="请输入验证码" name="val_code">
        <span class="am-input-group-btn">
                                            <button href="javascript:;" class="am-btn am-btn-sm am-btn-primary" data-dux="page-getCode"
                                                    data-url="{url('member/Real/getCode')}" data-field="val_type"
                                                    type="button">获取验证码</button>
                                        </span>
    </div>
    <input type="hidden" name="card_id" value="{$info.card_id}">
    <div class="am-padding">
        <button class="am-btn am-btn-primary am-btn-block" type="submit">提交申请</button>
    </div>
</form>
<div class="am-popup" id="card-modal">
    <div class="am-popup-inner">
        <div class="am-popup-hd">
            <h4 class="am-popup-title">选择银行卡</h4>
            <span data-am-modal-close
                  class="am-close">&times;</span>
        </div>
        <div class="dux-box am-margin-top-0">
            <ul class="dux-menu">
                <!--loop{$cardList as $vo}-->
                <li>
                    <a href="javascript:;" data-id="{$vo.card_id}">
                        <span class="title"><img src="__PUBLIC__/member/images/blank/{$vo['label']}.png" width="16" height="16px"> {$vo['bank']} (尾号{substr($vo['account'], -4)})</span>
                        <span class="more"><i class="am-icon-angle-right"></i></span>
                    </a>
                </li>
                <!--{/loop}-->
            </ul>
        </div>
        <div class="am-padding">
            <a href="{url('member/Card/index')}" class="am-btn am-btn-primary am-btn-block">管理银行卡</a>
        </div>
    </div>
</div>
<script>
    Do('base', function () {
        $('.dux-menu').on('click', 'a', function () {
            $title = $(this).find('.title').html();
            $('#card_id').val($(this).data('id'));
            $('#card-info').html($title);
            $('#card-modal').modal('close');
        });
    });
</script>


<div class="am-popup" id="help-modal">
    <div class="am-popup-inner">
        <div class="am-popup-hd">
            <h4 class="am-popup-title">提现说明</h4>
            <span data-am-modal-close
                  class="am-close">&times;</span>
        </div>
        <div class="am-popup-bd dux-box am-margin-top-0">
            <p>办理时间：每日9:00-18:00</p>
            <div class="dux-br"></div>
            <p>提现额度：每次提现最多提现额度为{$cashConfig.clear_withdraw}元，最高提现以银行限额为准。</p>
            <div class="dux-br"></div>
            <p>提现手续费：每次提现将收取提现金额{$cashConfig.clear_tax}%作为手续费，最高手续手续费50元。</p>
            <div class="dux-br"></div>
            <p>提现次数：每月限制{$cashConfig.clear_num}次提现次数，超出请于下月继续提现。</p>
            <div class="dux-br"></div>
            <p>提现到账时间：提现成功后一般将在1-3个工作日到账，周末顺延。如逾期未到账，请查询银行卡出入账明细和个人中心余额是否有退回。</p>
            <div class="dux-br"></div>
            <p>为保障您的财产安全只能使用本人绑定银行卡。</p>
            <div class="dux-br"></div>
            <p>如在提现过程中有任何疑问，请联系服务商为您解答。</p>
        </div>
    </div>
</div>